import QtQuick 1.0

Repeater {
	id: dam

	property int floors: 5
	property int stairways: 3

	property int blockWidth: 30
	property int blockHeight: 30

	width: stairways * blockWidth
	height: floors * blockHeight

	model: floors * stairways
//	model: 5

	delegate: Log {
		x: dam.x + index % stairways * width
		y: dam.y + Math.floor(index / stairways) * height;

//		x: dam.x + index
//		y: dam.y + index

		width: blockWidth
		height: blockHeight
	}
}
